import {
	$http
} from './request.js';
// 注册
export const register = (data) => {
	return $http({
		url: '/user/register',
		method: 'POST',
		data
	})
}
//登录
export const login = (data) => {
	return $http({
		url: '/user/login',
		method: 'POST',
		data
	})
}
//发送验证码
export const sendcode = (data) => {
	return $http({
		url: '/Sms/send',
		method: 'POST',
		data
	})
}
//修改密码
export const setpwd = (data) => {
	return $http({
		url: '/user/resetpwd',
		method: 'POST',
		data
	})
}
//实名认证 
export const verify = (data) => {
	return $http({
		url: '/user/verify',
		method: 'POST',
		data
	})
}
//产品列表
export const indexGooods = (data) => {
	return $http({
		url: '/goods/getGoodsList',
		method: 'GET',
		data
	})
}
//产品详情 
export const getGoodsInfo = (data) => {
	return $http({
		url: '/goods/getGoodsInfo',
		method: 'GET',
		data
	})
}
//产品筛选
export const selectProject = (data) => {
	return $http({
		url: '/goods/getSelectList',
		method: 'GET',
		data
	})
}
//添加预约
export const addScheduled = (data) => {
	return $http({
		url: '/user_scheduled/addScheduled',
		method: 'POST',
		data
	})
}
//资讯栏目
export const getNewsCategory = (data) => {
	return $http({
		url: '/news/getNewsCategory',
		method: 'GET',
		data
	})
}
//资讯列表
export const getNewsList = (data) => {
	return $http({
		url: '/news/getNewsList',
		method: 'GET',
		data
	})
}
//社区协议 
export const getSqxy = (data) => {
	return $http({
		url: '/index/getSqxy',
		method: 'GET',
		data
	})
}
//周期列表啊
export const getZq = (data) => {
	return $http({
		url: '/index/getZq',
		method: 'POST',
		data
	})
}
//收益计算
export const getJisuan = (data) => {
	return $http({
		url: '/index/getJisuan',
		method: 'POST',
		data
	})
}
//用户反馈
export const addFankui = (data) => {
	return $http({
		url: '/user/addFankui',
		method: 'POST',
		data
	})
}
// 关于我们 
export const getGywm = (data) => {
	return $http({
		url: '/index/getGywm',
		method: 'GET',
		data
	})
}
//用户信息 
export const getUserInfo = (data) => {
	return $http({
		url: '/user/getUserInfo',
		method: 'GET',
		data
	})
}
//认购产品列表
export const getOrderList = (data) => {
	return $http({
		url: '/order/getOrderList',
		method: 'GET',
		data
	})
}
//认购产品详情
export const getOrderInfo = (data) => {
	return $http({
		url: 'order/getOrderInfo',
		method: 'GET',
		data
	})
}
//首页轮播图 index/getAd
export const getAd = () => {
	return $http({
		url: '/index/getAd',
		method: 'GET',
	})
}
//

export const getOrderDetails = (data) => {
	return $http({
		url: '/order/getOrderInfo',
		method: 'GET',
		data
	})
}